<template>
  <div>
    <el-table
      :data="tableData5" style="width: 92%;margin: 20px auto"
    >
      <el-table-column type="expand">
        <template slot-scope="props">
          <el-form labelPosition="left" inline class="demo-table-expand">
            <el-form-item label="姓名">
              <span>{{ props.row.name }}</span>
            </el-form-item>
            <el-form-item label="提现金额">
              <span>{{ props.row.shop }}</span>
            </el-form-item>
            <el-form-item label="代理编号">
              <span>{{ props.row.id }}</span>
            </el-form-item>
            <el-form-item label="提现次数">
              <span>{{ props.row.shopId }}</span>
            </el-form-item>
            <el-form-item label="提现说明">
              <span>{{ props.row.shopId }}</span>
            </el-form-item>
          </el-form>
        </template>
      </el-table-column>
      <el-table-column
        label="姓名"
        prop="id"
      >
      </el-table-column>
      <el-table-column
        label="提现金额"
        prop="name"
      >
      </el-table-column>
      <el-table-column
        label="申请时间"
        prop="desc"
      >
      </el-table-column>
      <el-table-column
        label="审核状态"
        prop="status"
      >
      </el-table-column>
      <el-table-column
        fixed="right"
        label="操作"
        width="100"
      >
        <template slot-scope="scope">
          <el-button type="text" size="primary" @click="showCheck=true">审核</el-button>
        </template>
      </el-table-column>
    </el-table>
    <el-dialog
      title="提现审核"
      :visible.sync="showCheck"
      width="40%"
    >
      <el-form labelWidth="100px">
        <el-form-item label="审核结果">
          <el-radio-group v-model="checkStatus">
            <el-radio label="成功"></el-radio>
            <el-radio label="失败"></el-radio>
          </el-radio-group>
        </el-form-item>
        <el-form-item label="审核结果">
          <el-input
            type="textarea"
            :rows="2"
            placeholder="请输入内容"
            v-model="textarea"
          >
          </el-input>
        </el-form-item>

      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="showCheck = false">取 消</el-button>
        <el-button type="primary" @click="showCheck = false">修 改 </el-button>
      </span>
    </el-dialog>
  </div>

</template>


<script>
export default {
  data() {
    return {
      showCheck: false,
      checkStatus: '',
      tableData5: [{
        id: '张三',
        name: '200',
        category: '江浙小吃、小吃零食',
        desc: '2017/10/20 20:13:26',
        address: '上海市普陀区真北路',
        shop: '王小虎夫妻店',
        shopId: '10333',
        status: '待审核',
      }],
    };
  },
};
</script>
<style>
  .demo-table-expand {
    font-size: 0;
  }
  .demo-table-expand label {
    width: 90px;
    color: #99a9bf;
  }
  .demo-table-expand .el-form-item {
    margin-right: 0;
    margin-bottom: 0;
    width: 50%;
  }
</style>
